//
// Created by wkm on 2023-12-13.
//

#ifndef MYSYSTEMCLEARNING_FILTER_H
#define MYSYSTEMCLEARNING_FILTER_H

#include "systemc.h"

const int PRECISION = 16;

SC_MODULE(filter) {
    sc_in<sc_uint<PRECISION>> xin, xd1, xd2, xd3;
    sc_in<bool> clk;
    sc_out<sc_uint<PRECISION>> yout;

    void prc_filter();

    SC_CTOR(filter) {
        SC_THREAD(prc_filter);
        sensitive_pos << clk;
    }
};

#endif //MYSYSTEMCLEARNING_FILTER_H
